import React, { Component } from 'react';
import Logo from '../../../components/common/logo'
import Search from '../../../components/baidu/search'
import TopSearch from '../../../components/baidu/top_search'
import './baidu.scss'
class baidu extends Component {
  state = {
    keys: ''
  }
  seek = (val) => {
    this.setState({}, () => {
      this.setState({
        keys: val
      })
    })
  }
  render () {
    return (
      <>
        <div className='baidu'>
          {/* logo图片 */}
          <Logo />
          {/* 搜索 */}
          <Search seek={this.seek} />
          {/* 热搜 */}
          <TopSearch keys={this.state.keys} />
        </div>
      </>
    )
  }
}

export default baidu;